package cn.drew.house.mapper;

import cn.drew.house.domain.ContractInformation;
import cn.drew.house.query.ContractInformationQuery;

import java.util.List;


public interface ContractInformationMapper {
    //添加
    void add(ContractInformation contractInformation);
    //修改
    void update(ContractInformation contractInformation);
    //删除
    void delete(Long id);
    //查找一个
    ContractInformation findById(Long id);
    //查找所有
    List<ContractInformation> findAll();
    //分页条数
    Integer queryByCount(ContractInformationQuery contractInformationQuery);
    //分页查找数据
    List<ContractInformation> queryByPage(ContractInformationQuery contractInformationQuery);

    void patchDelete(List<Long> ids);

    ContractInformation findByHouseid(Integer houseId);
}
